package com.zhz.lib.project.service.hotlink;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhz.lib.project.domain.hotlink.Hotlink;
import com.zhz.project.common.util.hibernate.BaseDAO;

@Service
public class HotlinkService {
    @Autowired
    private BaseDAO baseDao;

    /**
     * 获取（常用/相关）链接
     * 
     * @param hotlinkVO
     * @return
     */
    public List<Hotlink> getHotLink(String type) {
        return (List<Hotlink>) baseDao.select("from Hotlink where type='" + type
                                              + "' order by sortNumber ");
    }
}
